import datetime
import random
def get_order_id():
    # SYL3+年4 +月2 +日2+时分秒6+random7
    d = datetime.datetime.now()
    s = 'SYL{year}{month}{day}{hour}{minute}{second}{randint}'.format(
        year=d.year,
        month=d.month,
        day=d.day,
        hour=d.hour,
        minute=d.minute,
        second=d.second,
        randint='%07d'%random.randint(0,9999999)
    )
    return s